package com.situ.allaia.service;

import com.situ.allaia.model.Order;
import com.situ.allaia.model.OrderSearchBean;
import com.situ.allaia.util.PaginateInfo;

import java.util.Collection;
import java.util.List;


public interface OrderService {
    Order save(Order order);

    //批量发货
    int sendByIds(Collection<Long> ids);

    //部分修改
    boolean patch(Order order);

    List<Order> findByUserId(Integer userId);

    Order findById(Long id);

    List<Order> findAll(OrderSearchBean osb, PaginateInfo pi);
}
